package com.jrx.anytxn.feign.gateway.service;/**
 * IOuterGatewayService
 *
 * @author lujianyou
 * @Description TODO
 * @Date 2021/6/23 0:23
 * @Version 1.0
 **/

import com.jrx.anytxn.feign.gateway.response.CouponResponse06;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import com.jrx.anytxn.feign.gateway.bean.ApiResponse;
import com.jrx.anytxn.feign.gateway.response.CouponResponse05;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * ClassName IOuterGatewayService
 *
 * @author lujianyou
 * @version 1.0
 * @description 外网访问接口
 * @date 2021/6/23 0:23
 **/
@FeignClient("anyAPIGateway")
public interface IOuterGatewayService {

    /**
     * 场景 2.5 下单接口
     * @param reqJson
     * @return
     */
    @PostMapping(value = "/api/coupon/createOrder" , consumes = "application/json;charset=UTF-8")
    ApiResponse<CouponResponse05> order(@RequestBody String reqJson);


    /**
     * 场景 2.4 订单详情-卡券信息
     * @param reqJson
     * @return
     */
    @PostMapping(value = "/api/coupon/cardCouponDetail" , consumes = "application/json;charset=UTF-8")
    ApiResponse<CouponResponse06> cardCouponDetail(@RequestBody String reqJson);

}
